<ul class="nav nav-tabs">
	<li ng-class="{'active':pagedata.op=='installed'}"><a href="javascript:;" ng-click="access()">已安装模版</a></li>
	<li ng-class="{'active':pagedata.op=='prepared'}"><a href="javascript:;" ng-click="access('prepared')">待安装模版</a></li>
	<li ng-class="{'active':pagedata.op=='to_shop'}"><a href="javascript:;" ng-click="access('to_shop')">发布模版</a></li>
</ul>
<div class="keyword-list-head">
	<div class="keyword-list-head clearfix">
		<div class="input-group jinyun-margin-bottom" style="width:465px;">
			<input class="form-control" type="text" ng-model="pagedata.params.title" value="" placeholder="输入模板名称" style="width: 427px;">
			<span class="input-group-btn"><button id="submit" ng-click="pagedata.params.page=1;access(pagedata.op,made_query(pagedata.params))" class="btn btn-default"><i class="fa fa-search"></i> 搜索</button></span>
		</div>
	</div>
</div>
<div class="clearfix table-responsive" ng-if="pagedata.op=='installed'">
<div class="alert alert-success alert-dismissable ng-scope">
		<i class="fa fa-bullhorn alert-link"></i>此处只显示从云平台安装的模版，不显示站内用户自定义模版
</div>
<div class="form-group">
	<div class="btn-group site-tp-group">
		<a href="" ng-repeat="group in pagedata.groups" ng-class="{'btn': 1,'active': pagedata.params.type == group.id}" ng-click="pagedata.params.page=1;pagedata.params.type=group.id;access(pagedata.op,made_query(pagedata.params))">{{group.title}}</a>
	</div>
</div>
<div class="site-tp-list">
  <div class="site-col tj_item" ng-repeat="item in pagedata.list">
        <div class="site-tp-li-msg">
          <div class="site-tp-li-content">
            <div class="site-tp-li-info">
              <em class="site-tp-li-date">{{item.title}}</em>
			</div>
            <div class="site-tp-li-item">
				<div class="site-tp-li-thumb" style="background-image:url('{{tomedia(item.image,true)}}')">
					<div class="cover-dark">
						<div class="selected">
							<i class="fa fa-check"></i>
						</div>
					</div>
				</div>
            </div>
          </div>
          <div class="appmsg_opr">
            <ul>
              <li class="appmsg_opr_item size-1of2">
				<a target="_blank" href="" title="详情"><i class="fa fa-cny ico-add"></i>详情</a>
              </li>
              <li class="appmsg_opr_item size-1of2">
                <a class="js_del" href="javascript:void(0);" ng-click="post({},'uninstall','id='+item.id)" title="卸载">&nbsp;
                  <i class="fa fa-trash-o ico-add"></i></a>
              </li>
            </ul>
        </div>
		</div>
  </div>
</div>
	<!-- 分页导航 -->
	<div ng-include="sys_html('common/page',true)"></div>
</div>
<div class="clearfix table-responsive" ng-if="pagedata.op=='prepared'">
<div class="alert alert-success alert-dismissable ng-scope" >
		<i class="fa fa-bullhorn alert-link"></i>此处显示从云平台购买但尚未安装的模版
</div>
<div class="form-group">
	<div class="btn-group site-tp-group">
		<a href="" ng-repeat="group in pagedata.groups" ng-class="{'btn': 1,'active': pagedata.params.type == group.id}" ng-click="pagedata.params.page=1;pagedata.params.type=group.id;access(pagedata.op,made_query(pagedata.params))">{{group.title}}</a>
	</div>
</div>
<div class="site-tp-list">
		<div class="site-col tj_item" ng-repeat="item in pagedata.list">
		<div class="site-tp-li-msg">
          <div class="site-tp-li-content">
            <div class="site-tp-li-info">
              <em class="site-tp-li-date">{{item.title}}</em>
			</div>
            <div class="site-tp-li-item">
				<div class="cover-lock">
				<div class="lock">
					<a ng-href="" class="btn btn-warning item-build-btn" ng-click="post({},'install','id='+item.id)">点击安装</a>
				</div>
			</div>
				<div class="site-tp-li-thumb" style="background-image:url('{{tomedia(item.image,true)}}')">
					<div class="cover-dark">
						<div class="selected">
							<i class="fa fa-check"></i>
						</div>
					</div>
				</div>
            </div>
          </div>
          <div class="appmsg_opr">
            <ul>
              <li class="appmsg_opr_item size-1of1">
                <a class="js_del" href="javascript:void(0);" ng-click="post({},'install','id='+item.id)" title="安装">&nbsp;
                  安装</a>
              </li>
            </ul>
          </div>
		</div>
</div>
</div>
	<!-- 分页导航 -->
	<div ng-include="sys_html('common/page',true)"></div>
</div>